home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_10
/
9n10097a
< prev
next >
Wrap
Text File
|
1991-06-11
|
1KB
|
34 lines
/* ---------------------------------------------------------
CSWITCH.H
This is the header file for the subsystem that
supports generic command-line switches.
Written by: William J. McMahon on: August 25, 1990
--------------------------------------------------------- */
#ifndef CSWITCH_H /* Avoid duplicate definitions. */
#define CSWITCH_H
/* Macros that could be put in a more general header file.*/
typedef unsigned char BOOL; /* ... TRUE or FALSE */
#define MAX_STR 128 /* ... for string buffers.*/
#define TRUE 1
#define FALSE 0
/* --------------- Function Prototypes ------------------ */
BOOL csw_ison(char *, int);
void csw_parse(int, char **);
/* -------- Macro for switchable execution -------------- */
#ifdef NO_CSW
#define CSW_EXEC(x) ((void)0)
#else
#define CSW_EXEC(x) (csw_ison(__FILE__, __LINE__) ? \
(x) : ((void)0) )
#endif
#endif /* #ifndef CSWITCH_H */